package edu.zut.hb.software.train.GenerateManager.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import edu.zut.hb.software.base.service.impl.GenericManagerImpl;
import edu.zut.hb.software.train.Generate.dao.GenerateDao;
import edu.zut.hb.software.train.Generate.domain.Generate;
import edu.zut.hb.software.train.GenerateManager.service.GenerateManager;


@Service("generateManager")
public class GenerateManagerImpl extends GenericManagerImpl<Generate, Long> implements GenerateManager {

	
	GenerateDao generateDao;
	
	@Autowired
	public void setGenerateDao(GenerateDao generateDao) {
		this.generateDao = generateDao;
		this.dao = this.generateDao;
	}

	@Override
	public List<Generate> getAll() {
		List<Generate> all = this.generateDao.findAll();
		if (logger.isInfoEnabled()) {
			logger.info("getAll() - List<Generate> all={}", all); //$NON-NLS-1$
		}
		return all;
	}
 
}